package com.hxl.tech.gateway.auth.config;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Getter
@Configuration
public class OpenApiConfig {

    public static String openApiUrl;
    public static String openLoginUrl;
    public static String openLoginPath;

    public static String getOpenApiUrl() { return openApiUrl; }

    public static String getOpenLoginUrl() { return openLoginUrl; }

    public static String getOpenLoginPath() { return openLoginPath; }

    @Value("${open.api-url}")
    public void setOpenApiUrl(String openApiUrl) {
        OpenApiConfig.openApiUrl = openApiUrl;
    }

    @Value("${open.login-url}")
    public void setOpenLoginUrl(String openLoginUrl) {
        OpenApiConfig.openLoginUrl = openLoginUrl;
    }

    @Value("${open.login-path}")
    public void setOpenLoginPath(String openLoginPath) {
        OpenApiConfig.openLoginPath = openLoginPath;
    }

}
